<?php
include_once("RDGDatosPE.php");
class TSPlanEstudio{
    
	// property declaration
	var $RDGPE ;
	
	public function __construct(){
		$this->RDGPE = new RDGDatosPE();
	}
	
	
    // method declaration
    public function cargarPlanes() {
		$sql="SELECT * FROM plan_estudios";
		return $this->RDGPE->consultar($sql);
    }
	
	public function insertarPlanEstudio($nombre, $vigencia, $gradosAcademicos, $creditos, $descripcion) {
		$sql = "INSERT INTO plan_estudios VALUES ('$nombre', '$vigencia', '$gradosAcademicos', '$creditos', '$descripcion')";;
		return $this->RDGPE->insertar($sql);
    }
	
}
?>
